#ifndef DATAPROCESSSERVICE_H
#define DATAPROCESSSERVICE_H

#include <QObject>
#include "TcpServer.h"
#include "psm.h"

class DataProcessService : public QObject
{
    Q_OBJECT
public:
    explicit DataProcessService(const hv::SocketChannelPtr& channel, QObject *parent = nullptr);
    virtual ~DataProcessService();

private:
    const hv::SocketChannelPtr& channel;
    psm_t psm_default;
    psm_t psm_custom;
    static int recv_callback(psm_t* psm, const void* buf, uint32_t len);

public:
    void process(const void* buf, uint32_t len);

public:

};

#endif // DATAPROCESSSERVICE_H
